package com.pets.web.controller.admin;


import com.pets.common.core.controller.BaseController;
import com.pets.common.core.page.TableDataInfo;
import com.pets.web.entity.PetsShop;
import com.pets.web.entity.PetsUser;
import com.pets.web.service.IPetsUserService;
import com.pets.web.service.impl.PetsUserServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 微信用户信息表 前端控制器
 * </p>
 *
 * @author zhurenwang
 * @since 2024-05-26
 */
@RestController
@RequestMapping("/user")
public class PetsUserController extends BaseController {

    @Autowired
    private IPetsUserService petsUserService;
    @GetMapping("/list")
    public TableDataInfo<PetsUser> list(PetsUser petsUser){
        startPage();
        List<PetsUser> list = petsUserService.list(petsUser);
        return getDataTable(list);
    }
}
